<template>
  <div class="material-header" align="left">


    <van-image class="material-header-img" width="1.5rem" height="3.5rem"  fit="contain" :src="img" @click="down"/>
    <van-search class="material-header-search" v-model="value" placeholder="搜索" background="none"/>
  </div>
</template>

<script>
  export default {
    name: "material_header",
    data(){
      return{
        value: '',
        img: require('@/assets/返回.png'),
      }
    },
    methods:{
      down(){
        // this.$router.go(-1);
        this.$router.push({path:"/"});
      }
    }
  }
</script>

<style scoped>
  .material-header{
    background-color: #fff;
  }
  .material-header-img{
    margin-left: 1rem;
  }
  .material-header-search{
    float: right;
    margin: 0.2rem 0.5rem 0 0;
  }
</style>
